package org.example.physics_engine.collision.manifold;

import lombok.Data;
import org.example.physics_engine.geometry.Vector2d;

import java.util.ArrayList;
import java.util.List;

//代表两个Convex、Shape之间发生碰撞时的接触曲面，有多个碰撞点组成
@Data
public class Manifold {

    //碰撞点列表
    private List<ManifoldPoint> points;

    //分离法线的反向量
    private Vector2d normal;

    public Manifold() {
        this.points = new ArrayList<>();
        this.normal = new Vector2d();
    }
}
